package com.smxy.mall.model.request.user;

import io.swagger.annotations.ApiModel;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;

@ApiModel
@Data
public class DetailReq {
    @NotNull(message = "~id不能为空")
    private Integer id;
    @NotNull(message = "~用户名不能为空")
    @NotBlank(message = "用户名不能为空")
    private String userName;
    @NotNull(message = "~手机号不能为空")
    @NotBlank(message = "手机号不能为空")
    private String phone;
    @NotNull(message = "~账号类型不能为空")
    @NotBlank(message = "账号类型不能为空")
    private String type;
    @NotNull(message = "~角色不能为空")
    private Integer rolesId;
    private String name;
}
